<?php 
$clients=$model;
?>
<div class='contentheader'>
<?
echo sigi::addbox(array(array('title'=>'new Client', 'link'=>CONTDIR.'clientlogin/form')));
?>

<h1>Alle Clients</h1>
</div>

<?php
foreach($clients->find_all() as $client){
	echo '<div class="pages_item">';
	
	echo sigi::actionbox_small('clientlogin', $client->id);
	//echo sigi::addbox(array(array('title'=>'add Clientdata', 'link'=>CONTDIR.'clientdata/form/?parent_id='.$client->id)));

	echo '<p>'.html::anchor(CONTDIR.'clientlogin/single/'.$client->id,$client->title).'</p>';
	echo '<p>'.$client->description.'</p>';
	
	
	echo '</div>';		
}
?>